//
// Created by v on 19-6-27.
//

#ifndef JKLIBS_CMHTTPEXCURL_H
#define JKLIBS_CMHTTPEXCURL_H

#include "CMHttpEx.h"
#include "utils/cm_common.h"

#ifdef USE_LIBCURL
#include "curl/curl.h"
#endif

class CMHttpExCurl : public CMHttpEx
{
  public:
    CMHttpExCurl();
    virtual ~CMHttpExCurl();

    int getSecure(const char *url, const char *caPath, int ctimeout = 3,
                  int timeout = 3) CM_CPP_OVERRIDE;

    int get(const char *url, int ctimeout, int timeout) CM_CPP_OVERRIDE;
};

#endif // JKLIBS_CMHTTPEXCURL_H
